home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
MATH
/
MFLOAT10.ZIP
/
READ.ME
< prev
Wrap
Text File
|
1993-04-28
|
7KB
|
169 lines
MFLOAT Version 1.00
for
BORLAND C++ 3.1
TURBO PASCAL 6.0
BORLAND PASCAL 7.0
A brief description of "MFLOAT":
* "MFLOAT" handles arithmetic using high precision numbers of up to 72 decimal
digits.
* "MFLOAT" is optimized for maximum speed for high precision numbers.
These subroutines are the fastest for the 8086 microprocessor known to us.
If you find faster subroutines for a 8086, please send me a mail.
* "MFLOAT" subroutines are much faster than a standard emulation of a
coprocessor for the same accuracy. "MFLOAT" does not use the coprocessor.
* "MFLOAT" is written in assembler for the 8086 microprocessor and
compatibles. The calculation is 10 to 20 times faster than that of
subroutines written in C or PASCAL. This is important for tedious
calculations like an optimization, where you have problems with the
accuracy. For this problems you can avoid the use of a super computer
which you feed with a C or PASCAL program for high precision numbers.
* All important functions of PASCAL and of a C library ("MATH.H") are
included. This includes the transcedental functions like sin(x), atan(x),
exp(x), log(x)....
* Programs written in C or C++, can use MFLOAT simply by replacing the
double data format with the "MFLOAT" data format. The operators and the
functions are overloaded for C++ and so only little changes of the source
code are necessary. (You need BORLAND C 3.1).
* The subroutines are included in compiled form (object files) in a program.
Therfore you can use them for PASCAL, C and C++. The subroutines are
tested for BORLAND PASCAL 7.0, TURBO PASCAL 6.0 and BORLAND C 3.1.
* This package is limited to about 72 decimal digits. You may license the
source code. Then you can extend the precision for the algebraic
calculations up to 10000 decimal digits (upper limit is due to the memory
limit of one segment of the 8086) and for transcendental function up to 500
digits.
* The internal data format is a binary floating point format. The length of
the mantissa can be choosen by the user from one word to 15 words.
(1 word = 16 bits). This correspondeds to about 5, 10, 14, 19, 24,
29, 34, 39, 43, 48, 53, 58, 63, 67 and 72 digits of a decimal number.
1 word represents 4.81648 digits of a decimal number in average.
The exponent of two has the length of 16 bits. The largest representable
number is about 7.07E+9863, the smallest is about 7.07E-9865.
You can find a detailed description in the file "MFLOAT.DOC".
***************************************************************************
The package includes following files:
READ.ME - general information
MFLOAT.DOC - describtion of the subroutines and mfloat numbers
MFLOATA.OBJ - subroutines written in assembler
MFLOATB.OBJ - subroutines written in C
MFLOAT.H - header file for C
MFLOAT.CXX - file for C++ : overloading functions and operators
PFLOAT.PAS - unit: declarations of the external subroutines
PI.PAS - example in PASCAL, calculation of pi
BESSEL.PAS - example in PASCAL, calculation of the bessel function
POLAR.PAS - example in PASCAL, conversion cartesian to polar coordinates
PI.C - example in C, calculation of pi
BESSEL.C - example in C, calculation of the bessel function
POLAR.C - example in C, conversion cartesian to polar coordinates
PI.CPP - example in C++, calculation of pi
BESSEL.CPP - example in C++, calculation of the bessel function
POLAR.CPP - example in C++, conversion cartesian to polar coordinates
PI.EXE - example program executable
The source code option includes further files:
MFLOATA.ASM - source code in assembler (basic subroutines)
MFLOATB.C - source code in C (transcendental functions and extensions)
MFLOATC.ASM - constants (include file of "MFLOATA.ASM")
CALCCON.PAS - calculation of constants in "MFLOATC.ASM" in PASCAL source
CALCCON.EXE - calculation of constants in "MFLOATC.ASM"
Registration:
MFLOAT is not a free subroutine package, but is being distributed under
the shareware concept. This allows you to evaluate the subroutines package
to determine whether it is worth anything, and then buy it if you are going
to use it. You must register the package MFLOAT if you are going to use it.
If you use MFLOAT after a reasonable evaluation period of two weeks,
register the subroutines.
Registration costs $20 US. To register, simply remit the money to the bank
accout (see address below) or send me a money order for $20 US at the
address below.
If you are more interested in the subroutines, source code is also available.
Registration costs $200 US for the source code. Please send me a letter and
remit the money to the bank accout (see address below) or send me a money
order for $200 US at the address below and the source code of MFLOAT will be
sent to you.
Other currencies:
currency registration source code
US dollar 20.-- 200.--
German DM 30.-- 300.--
Austrian S 210.-- 2100.--
The authors of MFLOAT are interested in a feedback from the users of "MFLOAT".
If you have problems or you find some bugs (the subroutines are checked very
often, but the probability, that a software of large dimension has no bug
is not large in reality), please describe them and send us a mail per
internet. You help us to remove this errors of the subroutines.
Many thanks for your help and much success with "MFLOAT".
Kaufmann Friedrich & Mueller Walter
Students at the Technical University of Graz
Registration address:
Kaufmann Friedrich
Schuetzenhofgasse 22
A-8010 GRAZ
AUSTRIA
EUROPE
Bank account:
CA - CREDITANSTALT
Herrengasse
A-8010 Graz
BLZ.: 11870
Nr. : 1087-03687/00
name: Kaufmann Friedrich
email address:
fkauf@fstgds06.tu-graz.ac.at
****************************************************************************
Legal stuff
"MFLOAT" is a copyrighted subroutine package. They may not be changed or
modified in any way except by the authors. "MFLOAT" may be freely distributed
so long as all files are included and no money is charged. A small copying
fee not exceeding $10 US may be charged.
All warranties are disclaimed, including damage to hardware and/or software
from use of this program. In no event will we be liable to you for any damages,
including lost profits, lost savings or other incidental or consequential
damages arising out of your use or inability to use the program, or any other
claim by any other party. In any event, the extent of our liability is limited
to amount of money received by us from you.
Every effort has been made to ensure that MFLOAT is as clean and free of
bugs as possible. However, no program can ever be guaranteed to be free of
all defects.
****************************************************************************
TURBO PASCAL is a trademark of Borland Corporation.